package com.day03.ex03;

public class WhileTest {
    public static void main(String[] args) {
        int count=0;
        double paper=0.1;
        int MountEverest=884430;
        while(paper<MountEverest){
            paper*=2;
            count++;
        }
        System.out.println("需要"+count+"页纸才能打印出"+MountEverest+"px");
    }
}
